<template>
  <div id="app">
    <div class="nav">
      <h1>vue-tabulation</h1>
      <TheNav />
    </div>
    <div class="content">
      <keep-alive>
        <router-view />
      </keep-alive>
    </div>
  </div>
</template>
<script>
import TheNav from './views/layout/TheNav'

export default {
  name: 'app',
  components: {
    TheNav,
  },
}
</script>

<style lang="scss">
#app {
  display: flex;
  flex-direction: row;
}
.nav {
  width: 120px;
  padding: 10px 5px;
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.18);
  h1 {
    font-size: 16px;
    margin: 0;
    text-align: center;
  }
  h2 {
    font-size: 14px;
    margin: 0;
    font-weight: normal;
  }
  ul {
    list-style-type: none;
    padding-left: 0px;
    margin-left: 10px;
    li {
      margin: 5px 0;
    }
  }
}
.content {
  flex: 1;
  overflow: hidden;
  padding: 30px 10px;
}
</style>
